<template>
  <div class="Visualization">
      <el-button @click="ssss">点击展示</el-button>
         <ConfirmWindow v-if="showApplydaily" @isShow="ssss" :dataList="nimbleForm" :title="'按日贷款申请成功！'"></ConfirmWindow>

  </div>
</template>

<script>
import cardComponent from '@/components/cardComponent/cardComponent.vue';
import ConfirmWindow from '@/components/ConfirmWindow/ConfirmWindow.vue';

export default {
  data() {
    return {
      nimbleForm: [
          { keys: '按日贷款金额 : ', values: '20' },
          { keys: '按日贷款天数 : ', values: '201' },
          { keys: '按日贷款到期日 : ', values: '20' },
          { keys: '按日贷款息费率 : ', values: '20' },
          { keys: '按日贷款息费 : ', values: '20' },
      ],
      showApplydaily: false,
    };
  },
  name: 'visualization',
  components: {
    ConfirmWindow,
  },
  methods: {
    startT(data) {
      this.nimbleForm.startDate = data;
      console.log(this.nimbleForm, data);
    },
    ssss(data) {
    //    this.showApplydaily=false
    //     console.log(this.showApplydaily)
    //    this.showApplydaily=true
    //       this.showApplydaily=false
         this.showApplydaily = data;
    },
    endT(data) {
      this.nimbleForm.endDate = data;
      console.log(this.nimbleForm, data);
    },
    onCheckDaily(ref) {
      console.log(this.nimbleForm);
      this.$refs[ref].validate((valid) => {
        if (!valid) return this.$message.error('验证错误，请核实填写数据！');

        console.log('发送');
      });
    },
  },
};
</script>

<style>
</style>
